package com.wuyou.single.common.exception;

import com.wuyou.single.common.api.IErrorCode;

/**
 * @Description
 * @Author 无忧
 * @Date 2024/6/11 22:45
 */
public class UserException extends BaseException{

    public UserException(String message, String serverName, int code, String params, String detailMsg, String optUser) {
        super(message, "用户服务", code, params, detailMsg, optUser);
    }
    public UserException(IErrorCode errorCode) {
        this(errorCode.getMessage(), errorCode.getCode());
    }
    public UserException(String serverName, int code) {
        super(serverName, "用户服务", code, null, null, null);
    }
}
